package cn.boone.motan.jingzhouCity.data;


import java.util.ArrayList;
import java.util.List;

/**
 * Created by MD-01 on 2017/3/15.
 */
public class TempConfig {

    public static Area me;
    public static List<Area> upAreaes;
    public static List<Area> downAreaes;
    public static RouteData routeData;

    static {
        //本域
        me = new Area();
        me.setName("荆州市");
        me.setSign("jz.hb.cn");
        me.setUrl("localhost:4003");

        //上级域
        upAreaes = new ArrayList<>();

        //下级域
        downAreaes = new ArrayList<>();
        Area jzq = new Area();
        jzq.setName("荆州区");
        jzq.setSign("jzq.jz.hb.cn");
        jzq.setUrl("localhost:3003");
        downAreaes.add(jzq);

        //本域数据
        routeData = new RouteData();
        routeData.setType("branch");
        List<RouteData.BranchRoute> branchRoutes = routeData.getBranchRoutes();
        RouteData.BranchRoute jzqRoute = new RouteData.BranchRoute();
        jzqRoute.setSign("jzq.jz.hb.cn");
        jzqRoute.setName("荆州区");
        jzqRoute.setCount(10);
        branchRoutes.add(jzqRoute);
    }

    public static class Area{
        private String name;
        private String sign;
        private String url;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
